<?php /* SVN: $Id: add.ctp 2832 2010-08-26 05:34:48Z sakthivel_135at10 $ */ ?>
<div class="projects form project-add-block add-form-block js-responses">
	   <?php  if(empty($this->request->params['admin'])) {?>
			<div class="l-curve-top">							
					<div class="r-curve-top">
                        	<div class="top-bg"></div>
                            </div>
						</div>
						<div class="shad-bg-lft clearfix">
							<div class="shad-bg-rgt">
								<div class="shad-bg">
	<?php } ?>
								<div class="main-section">
	<?php echo $this->Form->create('Project', array('class' => 'normal js-project-form js-upload-form project-add clearfix','enctype' => 'multipart/form-data'));
			echo $this->Form->input('step',array('value'=>'2','type'=>'hidden'));
	?>
	<div class="user-profile-form round-5 clearfix">
			   <?php  if(empty($this->request->params['admin'])) {?>
			   <?php if(Configure::read('Project.is_enable_idea')) :?>
	<h2><?php echo __l('Add Idea');?></h2>
	<?php else: ?>
	<h2><?php echo __l('Add Project');?></h2>
	<?php endif; ?>
<?php }?>
		<?php if (!empty($remaining_project_count)): ?>
			<div class="content-info clearfix">
				<p><?php echo __l('Total number of project user can add for a year:') . ' ' . Configure::read('Project.maximun_projects_per_user_per_year'); ?></p>
				<p><?php echo sprintf(__l('You can add %s more projects for this year.'), $remaining_project_count); ?></p>
			</div>
		<?php endif; ?>
		<?php //if ((isset($this->request->data['UserProfile']['paypal_account']) || (isset($userProfile) && empty($userProfile['UserProfile']['paypal_account'])))): ?>
		<div class="project-form-content">	
		<input type="radio" name="paymentGateWayName" id="NganLuongGate" value="NganLuong"  onclick="javascript:showPaypalFieldSet()">
		<label for="NganLuongGate"><?php echo ConstPaymentGatewaysName::NganLuong;?></label>
		<br>
		<input type="radio" name="paymentGateWayName" id="PayPalGate" value="PayPal" onclick="javascript:showPaypalFieldSet()">
		<label for="PayPalGate"><?php echo ConstPaymentGatewaysName::PayPal;?></label>
		<br>
		<script>
			function showPaypalFieldSet(){
				if(document.getElementById('PayPalGate').checked) {
					$('#PayPalGateBlockField').show();
					$('#NganLuongGateBlockField').hide();
				}else{
					$('#PayPalGateBlockField').hide();
					$('#NganLuongGateBlockField').show();
				}
			}
		</script>
		<fieldset class="fields-block round-5" id="PayPalGateBlockField" style="display:none">
			<h3 class="disk-usage"><?php echo ConstPaymentGatewaysName::PayPal;?></h3>
			<div class="content-info clearfix">
			<?php echo __l('If you don\'t have PayPal account,').' '.$this->Html->link(__l('click here'), array('controller' => 'payments', 'action' => 'create_paypal_account',$this->request->data['Project']['user_id'],'admin'=>false)).' '.__l('to create a PayPal account Instantly.'); ?>
			</div>
			<div class="input text required">
			<?php echo $this->Form->input('UserProfile.paypal_account', array('label' => __l('PayPal email'), 'div' => false));
			echo $this->Form->input('UserProfile.id', array('type' => 'hidden', 'value' => $userProfile['UserProfile']['id']));?>	
			</div>
			<div class="input text required">
			<?php echo $this->Form->input('UserProfile.paypal_first_name', array('label' => __l('PayPal first name'), 'div' => false, 'info' => __l('PayPal account first name for account verification')));?>	
			</div>
			<div class="input text required">
			<?php echo $this->Form->input('UserProfile.paypal_last_name', array('label' => __l('PayPal last name'), 'div' => false, 'info' => __l('PayPal account last name for account verification')));?>	
			</div>
		</fieldset>
		<fieldset class="fields-block round-5" id="NganLuongGateBlockField">
			<h3 class="disk-usage"><?php echo ConstPaymentGatewaysName::NganLuong;?></h3>
			<div class="mceEditor-block">
			<?php
			echo $this->Form->input('UserProfile.PaymentInfomation', array('type'=>'textarea', 'label'=>__l('Payment Infomation'),'info'=>__l('Entered your payment infomation')));
			?>
			</div>
		</fieldset>
		</div>
		<?php //endif; ?>
		<div class="project-form-content">
			<fieldset class="fields-block">
				<h3 class="disk-usage"><?php echo __l('Project Info'); ?></h3>
				<div class="clearfix">
				<?php
				echo $this->Form->input('name' , array('label'=> __l('Name'),'class'=>"js-preview-keyup {'display':'js-name'}"));
				echo $this->Form->input('short_description', array('type'=>'textarea','class' => 'js-preview-keyup js-description-count {"display":"js-short-description","field":"js-short-description-count","count":"'.Configure::read('Project.project_short_description_length').'"}','label'=>__l('Short description'), 'info' => __l('This text will be visible on projects home and list page.') . ' ' . '<span class="character-info">' . __l('You have') . ' ' . '<span id="js-short-description-count"></span>' . ' ' . __l('characters left') . '</span>'));
				?>
				<div class="mceEditor-block">
				<?php
				echo $this->Form->input('description', array('type'=>'textarea', 'class' => 'js-editor', 'label'=>__l('Description'),'info'=>__l('Entered description will display in view page')));
				?>
				</div>
				<?php
				echo $this->Form->input('project_category_id', array('empty' => __l('Please select'), 'label'=>__l('Project category')));
				echo $this->Form->input('user_id', array('type' => 'hidden'));
				?>
				<div class="upload-image">
					<?php echo $this->Form->input('Attachment.filename', array('type' => 'file','size' => '33', 'label' => __l('Upload image'),'info'=>__l('Maximum allowed size ').Configure::read('Project.image.allowedSize').Configure::read('Project.image.allowedSizeUnits'),'class' =>'browse-field'));?>
				</div>
				</div>
            	</fieldset>
  				<fieldset class="fields-block">
                <div class="input gig-img-label fields-block">
                <fieldset class="project-add">
				<h3 class="legend disk-usage"><?php echo __l('Media Files');?></h3>
				<div class="clearfix">
                <div class="content-info clearfix">
					<p><?php echo __l('You can add files related to this project. The file type can be jpg, jpeg, png, gif, doc, xls, txt, wmv, flv or pdf.'); ?></p>
				</div>
				<?php echo $this->Form->input('ProjectMedia.0.filename', array('type' => 'file','size' => '33', 'label' => __l('Upload Media File'), 'class' =>'browse-field'));?>
				<?php echo $this->Form->input('ProjectMedia.0.description', array('type' => 'text','size' => '33', 'label' => __l('Description'), 'class' =>'description-field'));?>
				<?php echo $this->Form->input('ProjectMedia.1.filename', array('type' => 'file','size' => '33', 'label' => __l('Upload Media File'), 'class' =>'browse-field'));?>
				<?php echo $this->Form->input('ProjectMedia.1.description', array('type' => 'text','size' => '33', 'label' => __l('Description'), 'class' =>'description-field'));?>
				<?php echo $this->Form->input('ProjectMedia.2.filename', array('type' => 'file','size' => '33', 'label' => __l('Upload Media File'), 'class' =>'browse-field'));?>
				<?php echo $this->Form->input('ProjectMedia.2.description', array('type' => 'text','size' => '33', 'label' => __l('Description'), 'class' =>'description-field'));?>
				<?php echo $this->Form->input('ProjectMedia.3.filename', array('type' => 'file','size' => '33', 'label' => __l('Upload Media File'), 'class' =>'browse-field'));?>
				<?php echo $this->Form->input('ProjectMedia.3.description', array('type' => 'text','size' => '33', 'label' => __l('Description'), 'class' =>'description-field'));?>
				<?php echo $this->Form->input('ProjectMedia.4.filename', array('type' => 'file','size' => '33', 'label' => __l('Upload Media File'), 'class' =>'browse-field'));?>
				<?php echo $this->Form->input('ProjectMedia.4.description', array('type' => 'text','size' => '33', 'label' => __l('Description'), 'class' =>'description-field'));?>
                      </div>
                </fieldset>
				
                </div>

			</fieldset>
		</div>
		
		<div class="project-form-content">
			<fieldset class="fields-block">
				<h3 class="disk-usage"><?php echo __l('Location'); ?></h3>
				<div class="profile-block clearfix">
						 <div class="mapblock-info mapblock-info1">
                                <div class="clearfix address-input-block required">
                                <?php
									echo $this->Form->input('Project.address', array('label' => __l('Address'), 'class'=> 'js-preview-address-change','id' => 'ProjectAddressSearch', 'info' => __l('You must select address from autocomplete')));
                                ?>
                                </div>
								<?php
								$class = '';
								if (empty($this->request->data['UserProfile']['address']) || ( !empty($this->request->data['UserProfile']['address1']) && !empty($this->request->data['City']['name']) &&  !empty($this->request->data['UserProfile']['country_id']))) {
									$class = 'hide';
								}
							?>
								<div id="js-geo-fail-address-fill-block" class="<?php echo $class;?>">
								<div class="clearfix">
									<div class="map-address-left-block address-input-block">
                                <?php	echo $this->Form->input('Project.latitude', array('id' => 'latitude', 'type' => 'hidden'));
									echo $this->Form->input('Project.longitude', array('id' => 'longitude', 'type' => 'hidden'));
									echo $this->Form->input('address1', array('id' => 'js-street_id','type' => 'text', 'label' => __l('Address')));
									echo $this->Form->input('country_id',array('id'=>'js-country_id', 'empty' => __l('Please select')));
									echo $this->Form->input('State.name', array('type' => 'text', 'label' => __l('State')));
									echo $this->Form->input('City.name', array('type' => 'text', 'label' => __l('City')));
								?>
								</div>
								</div>
								</div>
								<div class="js-side-map-div <?php echo $class;?>">
										<h3><?php echo __l('Point Your Location');?></h3>
										<div class="js-side-map">
											<div id="js-map-container"></div>
											<span><?php echo __l('Point the exact location in map by dragging marker');?></span>
										</div>
									</div>
								<div id="mapblock">
									<div id="mapframe">
										<div id="mapwindow"></div>
									</div>
								</div>
								</div>
								</div>
			</fieldset>
		</div>
		<div class="project-form-content websites">
			<fieldset class="fields-block round-5">
				<h3 class="disk-usage"><?php echo __l('Websites'); ?></h3>
				<div class="clearfix">
				<?php
					echo $this->Form->input('video_embed_url',array('class'=>'video','label'=>__l('Video URL'),'info'=>__l('Enter video URL')));
                    echo $this->Form->input('website_url' , array('label'=> __l('Home page URL'), 'class' =>'home'));
                    echo $this->Form->input('linkedin_url' , array('label'=> __l('LinkedIn URL'), 'class' =>'linkedin'));
                    echo $this->Form->input('facebook_url' , array('label'=> __l('Facebook URL'), 'class' =>'facebook'));
                    echo $this->Form->input('twitter_url' , array('label'=> __l('Twitter URL'), 'class' =>'twitter'));
                    echo $this->Form->input('youtube_url' , array('label'=> __l('YouTube URL'), 'class' =>'youtube'));
                    echo $this->Form->input('myspace_url' , array('label'=> __l('MySpace URL'), 'class' =>'myspace'));
                    echo $this->Form->input('imdb_url' , array('label'=> __l('IMDb URL'), 'class' =>'imdb'));
   				?>
   				</div>
			</fieldset>
		</div> 
		<?php if(Configure::read('Project.is_enable_rss_feed')): ?>
				<div class="project-form-content">
			<fieldset class="fields-block round-5">
				<h3 class="disk-usage"><?php echo __l('Project Updates'); ?></h3>
				<div class="clearfix">
				<?php
					if(Configure::read('Project.is_enable_rss_feed')):
						echo $this->Form->input('feed_url',array('label'=>__l('Feed URL'),'info'=>__l('Automatically fetch updates from the given feed URL')));
					endif;
				?>
				</div>
			</fieldset>
		</div> 
	<?php 	endif; ?>
<?php if(Configure::read('Project.is_enable_facebook_url') || Configure::read('Project.is_enable_twitter_url')): ?>
				<div class="project-form-content">
			<fieldset class="fields-block round-5">
				<h3 class="disk-usage"><?php echo __l('Social feeds'); ?></h3>
				<div class="clearfix">
				<?php
					if(Configure::read('Project.is_enable_facebook_url')):
						echo $this->Form->input('facebook_feed_url',array('label'=>__l('Facebook feed URL'),'info'=>__l('You can enter facebook URL from which you want to show feeds.')));
					endif;
					if(Configure::read('Project.is_enable_twitter_url')): 
						echo $this->Form->input('twitter_feed_url',array('label'=>__l('Twitter username'),'info'=>__l('You can enter twitter username from which you want to show tweets. This widget is unavailable for private accounts.')));
					endif;
				?>
				</div>
			</fieldset>
		</div> 
	<?php 	endif; ?>
		<div class="project-form-content">
			<fieldset class="fields-block round-5">
				<h3 class="disk-usage"><?php echo __l('Funding'); ?></h3>
				<div class="clearfix">
				<?php
					echo $this->Form->input('needed_amount', array('label'=>__l('Needed amount').' ('.Configure::read('site.currency').')','info'=>sprintf(__l('Minimum Amount: %s%s <br/> Maximum Amount: %s'),Configure::read('site.currency'),$this->Html->cCurrency(Configure::read('Project.minimum_amount')), Configure::read('site.currency').$this->Html->cCurrency(Configure::read('Project.maximum_amount')))));
					if (Configure::read('Project.is_enable_threshold_limit')):
						$readonly = true;
						if (Configure::read('Project.is_allow_project_owner_to_set_reserve_amount') || $this->Auth->user('user_type_id') == ConstUserTypes::Admin):
							$readonly = false;
						endif;
						if(isset($this->request->data['Project']['reserve_amount']))
						{
                          if($this->request->data['Project']['reserve_amount'] != '0')
                                        {
                                            $reserve_amount = $this->request->data['Project']['reserve_amount'];
                                        }
                                        else
                                        {
                                            $reserve_amount = '';
                                        }
                        }
                        else
                        {
                          if(Configure::read('Project.global_reserve_amount') != 0)
                          {
                            $reserve_amount = Configure::read('Project.global_reserve_amount');
                          }
                          else
                          {
                            $reserve_amount = '';
                          }
                        }
						echo $this->Form->input('reserve_amount', array('readonly' => $readonly, 'value' => $reserve_amount, 'label' => __l('Reserve amount') . ' (' . Configure::read('site.currency') . ')'));
					endif;
				?>
				<div class="input date">
					<div class="js-datetime">
						<?php echo $this->Form->input('project_funding_end_date', array('label'=>__l('Project funding end date'),'type' => 'date', 'div' => false, 'orderYear' => 'asc')); ?>
					</div>
					<span class="info"><?php echo __l('Ending date should be within ').Configure::read('Project.paypal_expiry_date'). __l(' days from today. Because paypal authorization will expire in ').Configure::read('Project.paypal_expiry_date'). __l(' days'); ?></span>
				</div>
				<?php
				if ( (Configure::read('Project.is_allow_user_to_set_overfunding') || ($this->Auth->user('user_type_id') == ConstUserTypes::Admin)) && Configure::read('Project.is_allow_over_funding')) :
						echo $this->Form->input('is_allow_over_funding',array('label'=>__l('Allow 0verfunding')));
				endif;
				if(count($pledgeTypes) > 1){
					$info = implode(', ',$pledgeTypes);	
					$pledge_type_val = array_keys($pledgeTypes, Configure::read('Project.is_pledge_default_type'));
					$selected_pledge_val = (!empty($this->request->data['Project']['pledge_type_id'])) ? $this->request->data['Project']['pledge_type_id'] : $pledge_type_val[0];
					echo $this->Form->input('pledge_type_id', array('label'=>__l('Pledge type'), 'selected' => $selected_pledge_val, 'class'=>'js-pledge-type','info'=> __l('You can set pledge type as '). strtolower($info) .__l(' amount that you want each member to pledge when joining your campaign.  You select "any" option to let members pledge any amount.')));
				?>
				<div class="js-min-amount hide">
					<?php echo $this->Form->input('min_amount_to_fund', array('label'=>__l('Amount'),'info'=>__l('amount'))); ?>
				</div> 
				<?php
					}
				?>
				</div>
			</fieldset>
		</div>
		<?php if(Configure::read('Project.is_enable_project_rewards')): ?>
<div class="project-form-content">
			<fieldset class="fields-block round-5">
				<h3 class="disk-usage"><?php echo __l('Reward'); ?></h3>
				<div class="clearfix">
					<div class="content-info clearfix">
						<p><?php echo __l('The better the rewards, the faster you can meet your goal, and the more you will raise. Rewards can be real objects, experiences, or other cool stuff. But please keep them achievable and realistic.'); ?></p>
					</div>
				<?php
					$class = '';
					if(!Configure::read('Project.is_project_reward_optional')): 
						$class = "required";
					endif;
				?>
				<div class="js-clone">
					<div class="clearfix add-block"><span class ="js-add-more clone-add"><?php echo __l('Add More'); ?></span></div>
					<?php if(empty($this->request->data['ProjectReward'])):?>
						<div class="website-block js-field-list reward-block clearfix ">
						<div class="<?php echo $class; ?>">
							<?php
								echo $this->Form->input('ProjectReward.0.pledge_amount',array('label'=>__l('Pledge amount').' ('.Configure::read('site.currency').')','info'=>__l('Reward amount'))); ?>
								</div>
								<div class="<?php echo $class; ?>">
								<?php echo $this->Form->input('ProjectReward.0.reward',array('info'=>__l('Reward description'))); ?>
								</div>
								<?php echo $this->Form->input('ProjectReward.0.pledge_max_user_limit',array('label'=>__l('Pledge max user limit'),'info'=>__l('Maximum user allowed for this reward. Leave blank for no limit.')));
							?>
						</div>
					<?php else:	?>
						<?php
						$i=0;
						foreach($this->request->data['ProjectReward'] as $key => $projectReward) :
							$reward ='';
							if($i!=0){
								$reward=' reward-clone';
							}
						
						?>
							<div class="reward-block clearfix js-field-list js-new-clone-<?php echo $i.$reward; ?>">
							<?php if($key):?>
								<span class="js-website-remove clone-remove"><?php echo __l('Remove'); ?></span>
							<?php endif;?>
							<?php
								echo $this->Form->input('ProjectReward.'.$key.'.pledge_amount',array('label'=>__l('Pledge amount').' ('.Configure::read('site.currency').')', 'info' => __l('Reward amount')));
								echo $this->Form->input('ProjectReward.'.$key.'.reward',array('info' => __l('Reward description')));
								echo $this->Form->input('ProjectReward.'.$key.'.pledge_max_user_limit',array('label'=>__l('Pledge max user limit'),'info'=>__l('Maximum user allowed for this reward. Leave blank for no limit.')));
							?>
							</div>
						<?php 
						$i++;
						endforeach;?>
					<?php endif;?>
				</div>
				</div>
			</fieldset>
		</div> 
		<?php endif; ?>
		<?php
			if($this->Auth->user('user_type_id') == ConstUserTypes::Admin):
		?>
		<div class="project-form-content admin-actions">
				<fieldset class="fields-block round-5">
					<h3 class="disk-usage"><?php echo __l('Admin actions'); ?></h3>
					<div class="clearfix">
					<?php 
						echo $this->Form->input('project_status_id', array('empty' => __l('Please select'),'label'=>__l('Project status')));
						echo $this->Form->input('is_active',array('label'=>__l('Active')));
						echo $this->Form->input('is_recommended',array('label'=>__l('Recommended')));
					?>
					</div>
				</fieldset>
			</div> 
		<?php endif; ?>
		<div class="submit-block clearfix">
		<?php echo $this->Form->submit(__l('Create'));?>
		</div>
	</div>
	<?php echo $this->Form->end();?>
	
						
					</div>
 <?php  if(empty($this->request->params['admin'])) {?>
	</div>
							</div>
						</div>
						<div class="l-curve-bot">							
							<div class="r-curve-bot">
						      	<div class="bot-bg"></div>
                            </div>
						</div>
<?php } ?>
<?php  if(Configure::read('Project.project_layout') != ConstViewLayout::CompactView){ ?>

<div class="grid_6 alpha preview-content omega">
						<div class="l-curve-top">							
							<div class="r-curve-top">
                                <div class="top-bg"></div>
                            </div>
						</div>
						<div class="shad-bg-lft clearfix">
							<div class="shad-bg-rgt">
								<div class="shad-bg">
							<div class="collections-side2 clearfix">
								<div class="center-top clearfix">
									<div class="small-description">

										<div class="project-head">
													<h3 class="js-name">
													<?php $project_name=!empty($this->request->data['Project']['name'])?$this->request->data['Project']['name']: __l('Project name');
													echo $project_name ;?></h3>
															<p> <?php
													$username=!empty($this->request->data['User']['name'])?$this->request->data['User']['name']:$this->Auth->user('username');

													echo __l('by') . ' '; ?><?php echo $this->Html->link($this->Html->cText($username), array('controller' => 'users', 'action' => 'view', $username), array('escape' => false, 'title' => $this->Html->cText($username, false)));?>
                                                    </p>
										</div>
                                        <?php echo $this->Html->showImage('Project', array(), array('dimension' => 'big_thumb'),array('aspect_ratio'=>1)); ?>
                                        <p class="description-content js-short-description"><?php $short_description=!empty($this->request->data['Project']['short_description'])?$this->request->data['Project']['short_description']:__l('Short description');
													echo $short_description ;?>
                                        </p>
					                    <p>
											<?php if(!empty($this->request->data['Country']['iso2'])): ?>
											<span id="flag-flag" class="flags flag-<?php echo strtolower($this->request->data['Country']['iso2']); ?>" title ="<?php echo $this->request->data['Country']['name']; ?>"><?php echo$this->request->data['Country']['name']; ?></span>
										   <?php endif; ?>
											<span class="js-country"><?php echo $country=!empty($this->request->data['Country']['name'])?$this->request->data['Country']['name']: __l('Country'); ?></span>, <span class="js-city"><?php echo $city=!empty($this->request->data['City']['name'])?$this->request->data['City']['name']: __l('City'); ?></span>
										</p>
									</div>
									
            						<div class="clearfix">
                                        <dl class="fb-list clearfix grid_left">
                                          <dt class="grid_left"><?php echo $this->Html->cInt(0); ?></dt>
										  <dd class="grid_left"><?php echo __l("Backers"); ?></dd>
                                        </dl>
                                        <dl class="fb-list grid_right clearfix">
                                          <dt class="grid_right"><?php echo __l("Followers"); ?></dt>
                                          <dd class="grid_right"><?php echo $this->Html->cInt(0); ?></dd>
                                        </dl>
                                      </div>
                                    <div class="clearfix">
						                <dl class="feature-list grid_5">
											<?php if(!Configure::read('Project.is_fb_project_comment_enabled')): ?>
												<dt class="comments" title="<?php echo __l('Comments'); ?>"><?php echo __l('Comments:') . ' '; ?></dt>
													<dd><?php echo $this->Html->cInt('0'); ?></dd>
											<?php endif; ?>
												<dt class="updates" title="<?php echo __l('Updates'); ?>"><?php echo __l('Updates:') . ' '; ?></dt>
													<dd><?php echo $this->Html->cInt('0'); ?></dd>
												<dt class="views" title="<?php echo __l('Views'); ?>"><?php echo __l('Views:') . ' '; ?></dt>
													<dd><?php echo $this->Html->cInt('0'); ?></dd>
  									 </dl>
										<?php if (Configure::read('Project.is_enable_idea')): ?>
											<div class=" clearfix vote-count vote-count-small grid_4">
												<div class="js-rating-display">
                                                    <ul>
                                                      <li title="0 Votes" class="current-rating  "> 
													    <span class="vote-count-value">
													      <?php echo $this->Html->cInt(0); ?>
													    </span>
													  </li>
													</ul>
													<ul class="list count-list clearfix">
														<li class="supporters" title="<?php echo __l('supporters'); ?>"><?php echo $this->Html->cInt(0); ?></li>
															<li class="average" title="<?php echo __l('average'); ?>"><?php echo $this->Html->cInt(0); ?></li>
													</ul>
												</div>
											</div>
										<?php endif; ?>
									</div>
									<?php $collected_percentage =0;?>
								</div>
					             <div class="progress-inner clearfix">
											<div class="progress-block clearfix">
												<p class="progress-bar progress-bar-amount" title = '<?php echo $this->Html->cFloat($collected_percentage,false).'%'; ?>'>
													<span style="width:<?php echo ($collected_percentage > 100) ? '100%' : $collected_percentage.'%'; ?>;" title = "<?php echo $this->Html->cFloat($collected_percentage,false).'%'; ?>"></span>
												</p>
											</div>
											<div class="clearfix">
											<dl class="deal-value grid_2">
														<dt><?php echo __l('funded') ?></dt>
														<dd><?php echo $this->Html->cInt($collected_percentage). __l('%');?></dd>
												</dl>
												<dl class="deal-discount grid_2 alpha omega">
													<dt><?php echo __l('pledged') ?></dt>
													<dd><?php echo Configure::read('site.currency') . $this->Html->cCurrency('0'); ?></dd>
												</dl>
												<dl class="deal-save grid_left alpha omega">
													<dt><?php echo __l('days to go'); ?></dt>
														<dd>
															<?php
															echo $this->Html->cInt(Configure::read('Project.paypal_expiry_date'));

															?>
														</dd>
											  </dl>
											</div>
									</div>
							</div>
 							</div>
							</div>
						</div>
						<div class="l-curve-bot">
							<div class="r-curve-bot">
						      	<div class="bot-bg"></div>
                            </div>
						</div>
					</div>

<?php } ?>
</div>